package com.example.houduan.service;

import com.example.houduan.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author anonymous
 * @since 2024-08-27
 */
public interface UserService extends IService<User> {

    void registerUser(User reg);
    void logoutUser(Long id);
    boolean checkByEmail(String email);
    void updatapassword(String email,String password);

    User checkByUsername(String username);
   boolean updatapasswordByPassword(String username ,String password ,String psd);


    User findByUsername(User user);
    void updateUser(User user);
    User findUserById(Long userId);
}
